package com.info.zhiduoduo.repository.dto.project;

import lombok.Data;

import java.math.BigDecimal;

/**
 *  /智众包项目相同字段
 * @author tianyonghong
 * @create 2023/5/12
 */
@Data
public class SameProjectDto {
    private Integer projectid;
    private Integer projectType;
    private Integer userid;
    private Integer userType;
    private Integer compid;
    private String realname;
    private String username;
    //项目金额
    private BigDecimal projectAmount;

    public SameProjectDto format(SameProjectDto sp){
        SameProjectDto d = new SameProjectDto();
        d.setProjectAmount(sp.getProjectAmount());
        d.setUserid(sp.getUserid());
        d.setCompid(sp.getCompid());
        d.setUserType(sp.getUserType());
        d.setRealname(sp.getRealname());
        d.setUsername(sp.getUsername());
        return d;
    }

}
